package edu.cs.cs160.storytime;

import java.util.ArrayList;
import java.util.Random;


import edu.cs.cs160.storytime.StoryLibrary.BookData;

public class StoryHotspot {
	private double x;
	private double y;
	private double x2;
	private double y2;
	private ArrayList<StoryResource> resources;
	private int textColor;
	private String name;
	
	public StoryHotspot(String name,double x,double y,double x2, double y2, int textColor) {
		this.x = x;
		this.y = y;
		this.x2 = x2;
		this.y2 = y2;
		this.textColor = textColor;
		this.name = name;
		this.resources = new ArrayList<StoryResource>();
	}
	
	public void addResource (StoryResource resource) {
		this.resources.add(resource);
	}
	
	public double getLeft() {
		return x;
	}
	public double getTop() {
		return y;
	}
	public double getRight() {
		return x2;
	}
	public double getBottom() {
		return y2;
	}
	public String getName() {
		return this.name;
	}
	/*
	//pass in hotspot id, textview, 
	public void highlightHotspot() {
		//move textview
		//display text
		
		return;	
	}
	
	public void activateHotspot() {
		return;
	}
	*/
	public StoryResource getResource(int resID) {
		return this.resources.get(resID);
	}
}
